<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" id="main">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>排除未使用的文件工具插件</title>
	<link rel="stylesheet" href="../inc/css/style.min.css" />
	<script type="text/javascript" src="../inc/js/lib/jquery-1.11.1.min.js"></script>
	<script type="text/javascript" src="../inc/js/common.js"></script>
</head>
<body>

	<div class="main">

		<h1 class="main__title--h1 main__title--h1--v06">[排除未使用的文件]<br />插件配置<span class="red f12px">（2016 年 3 月 1 日更新）</span></h1>
		<ul class="breadcrumb">
			<li><a href="01.html">RPG Maker MV</a></li>
			<li>&gt;</li>
			<li>资料集</li>
			<li>&gt;</li>
			<li>[排除未使用的文件] 插件配置</li>
		</ul>

		<div class="main__section" id="p01">
			<h2 class="main__title--h2">插件配置</h2>
			<p>通过检查部署时的对话框以排除插件所必要的文件<br />
			<br />
			下面是一个例子，用在插件中的代码来排除文件。</p>

<div class="main__pre--code--wrap">
<pre class="line-pre">
<span class="pl-k">var</span> b1 <span class="pl-k">=</span> <span class="pl-smi">ImageManager</span>.<span class="pl-en">loadBitmap</span>(<span class="pl-s"><span class="pl-pds">"</span>img/example/<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>image_1<span class="pl-pds">"</span></span>);
<span class="pl-k">var</span> b2 <span class="pl-k">=</span> <span class="pl-smi">ImageManager</span>.<span class="pl-en">loadBitmap</span>(<span class="pl-s"><span class="pl-pds">"</span>img/example/<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>image_2<span class="pl-pds">"</span></span>);
<span class="pl-k">var</span> b3 <span class="pl-k">=</span> <span class="pl-smi">ImageManager</span>.<span class="pl-en">loadBitmap</span>(<span class="pl-s"><span class="pl-pds">"</span>img/example/<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>image_3<span class="pl-pds">"</span></span>);
</pre>
</div>

<p><br />为了避免这种情况，您必须编辑插件中的注释，如下所示。</p>

<div class="main__pre--code--wrap">
<pre class="line-pre">
 * @requiredAssets img/example/image_1
 * @requiredAssets img/example/image_2
 * @requiredAssets img/example/image_3
</pre>
</div>

<p>
将必需的文件写在 <span class="param-name">@requiredAssets</span>后面。<br />
*在HTML中使用的图像文件做同样的处理。
</p>
		</div>


		<div class="main__section" id="p02">
			<h2 class="main__title--h2">插件参数</h2>
			<p>如果用户有可用插件参数设置的音频或图像文件，则必须编辑插件中的注释以设置插件参数。</p>


<div class="main__pre--code--wrap">
<pre class="line-pre">
 * @param ME
 * @desc The ME name for sample music effect.
 * @default Organ
 * @require 1
 * @dir audio/me/
 * @type file
</pre>
</div>

			<table class="main__table--type01">
				<tr>
					<th>@require 1</th>
					<td>这表明此参数是一个必需的资源。</td>
				</tr>
				<tr>
					<th>@dir</th>
					<td>设置包含文件的文件夹。这不是动画所需的。</td>
				</tr>
				<tr>
					<th>@type</th>
					<td>如果值类型是文件，设置为 <span class="param-name">file</span>，如果是动画，设置为<span class="param-name">animation</span>。</td>
				</tr>
			</table>
		</div>


		<div class="main__section" id="p03">
			<h2 class="main__title--h2">笔记</h2>
			<p>如果你想将[note]包含在角色、物品等之中使用，你必须在插件里编辑注释，如下所示。</p>

<div class="main__pre--code--wrap">
<pre class="line-pre">
 * @noteParam sampleImage
 * @noteRequire 1
 * @noteDir img/sample/
 * @noteType file
 * @noteData items
</pre>
</div>

			<table class="main__table--type01">
				<tr>
					<th>@noteParam</th>
					<td>设置参数的名字</td>
				</tr>
				<tr>
					<th>@noteRequire 1</th>
					<td>指定此参数是必需的资源</td>
				</tr>
				<tr>
					<th>@noteDir</th>
					<td>设置包含图像文件的文件夹。这不是动画所需的。</td>
				</tr>
				<tr>
					<th>@noteType</th>
					<td>如果值类型是文件，设置为 <span class="param-name">file</span>，如果是动画，设置为<span class="param-name">animation</span>。</td>
				</tr>
				<tr>
					<th>@noteData</th>
					<td>
						设置游戏数据的类型。<br />
						以下是可用值的列表。
						<ul class="main__ul">
							<li>maps</li>
							<li>events</li>
							<li>actors</li>
							<li>classes</li>
							<li>skills</li>
							<li>items</li>
							<li>weapons</li>
							<li>armors</li>
							<li>enemies</li>
							<li>states</li>
							<li>tilesets</li>
						</ul>
					</td>
				</tr>
			</table>
		</div>

	</div><!-- /main -->




</body>
</html>


